﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jzy.Core.Common;
using FortuneHeavenCommon.DataMap;
using FortuneHeavenDAL;

namespace FortuneHeavenBAL
{
    public class GameShowOrdersBO : CommonOperate<GameShowOrders>
    {
        public GameShowOrdersDAL _acountDAL;
        public GameShowOrdersBO()
            : base()
        {
            _acountDAL = new GameShowOrdersDAL();
        }

        public void AddGameShowOrder(GameShowOrders order)
        {
            order.ID = this.GetMaxID();
            
            Save(order, true);
        }
        public List<GameShowOrders> GetShowOrders(int page, int size, int UserID)
        {
            return _acountDAL.GetShowOrders(page, size, UserID);
        }

        public int GetTotalSize(int UserID)
        {
            return _acountDAL.GetTotalSize(UserID);
        }
    }
}
